/**
 * Created on @@ by 仇科旭
 * Freshpower All Right Reserved.
 */
package com.tieland.gentool.model;

import com.tieland.gentool.util.Util;

public class Table{
	private Column[] columns;
	private String tableName;
	private String idName;

	public String getTableName(){
		return this.tableName;
	}

	public void setTableName(String tableName){
		this.tableName = tableName;
	}

	public String getIdName(){
		return this.idName;
	}

	public void setIdName(String idName){
		this.idName = idName;
	}

	public Column[] getColumns(){
		return this.columns;
	}

	public void setColumns(Column[] columns){
		this.columns = columns;
	}



    public String getFieldTableName(){
        return Util.toFieldStyle(this.tableName);
    }

    public String getMethodTableName(){
        return Util.toMethodStyle(this.tableName);
    }

    public String getFieldIdName(){
        return Util.toFieldStyle(this.idName);
    }

    public String getMethodIdName(){
        return Util.toMethodStyle(this.idName);
    }

    public String getUpperTableName(){
        return tableName.toUpperCase();
    }

    public String getLowerTableName(){
        return tableName.toLowerCase();
    }

    public String getUpperIdName(){
        return idName.toUpperCase();
    }

    public String getLowerIdName(){
        return idName.toLowerCase();
    }

    public String getUpTableName(){
        return Util.trimPrefix(tableName).toUpperCase();
    }

    public String getLowTableName(){
        return Util.trimPrefix(tableName).toLowerCase();
    }

    public String getUpIdName(){
        return Util.trimPrefix(idName).toUpperCase();
    }

    public String getLowIdName(){
        return Util.trimPrefix(idName).toUpperCase();
    }
}
